{template '../header'}

{if $detail['jump'] && $detail['redirect']}
<script type="text/javascript">
    location.replace("{$detail['redirect']}");
</script>
{/if}

<div>{$column['title']}</div>

<div>
    当前位置：
    <a href="/">首页</a> / 
    {loop $parent_columns $parent_column}
    <a href="/article/index/id/{$parent_column['id']}">{$parent_column['title']}</a> >
    {/loop}
    <a href="/article/index/id/{$column['id']}">{$column['title']}</a>
</div>

<div>
    {:$detail['title']}
</div>

<div>标签</div>
{loop $tags $tag}
<a href="/article/tag?tag={$tag['id']}">{$tag['title']}</a>
{/loop}

{if $detail['description']}
<div>
    {$detail['description']}
</div>
{/if}

<div>
    {$detail['content']}
</div>

<div>
    {if $pre_detail}
    <a href="/article/page/id/{$pre_detail['id']}">
        <div>
            {if $pre_detail['thumb']}
            <img src="{$pre_detail['thumb']}" />
            {/if}
            <span>上一篇</span>
        </div>
        <div>
            <div>{$pre_detail['title']}</div>
            <div>{$pre_detail['description']}</div>
        </div>
    </a>
    {/if}


    {if $next_detail}
    <a href="/article/page/id/{$next_detail['id']}">
        <div>
            {if $next_detail['thumb']}
            <img src="{$next_detail['thumb']}" />
            {/if}
            <span>下一篇</span>
        </div>
        <div>
            <div>{$next_detail['title']}</div>
            <div>{$next_detail['description']}</div>
        </div>
    </a>
    {/if}
</div>

{template '../tpl/reply'}

<div>热门推荐</div>
{loop $column_hots $column_hot}
<a href="/article/page/id/{$column_hot['id']}">
    {if $column_hot['thumb']}
    <img src="{$column_hot['thumb']}" />
    {/if}
    <div>{$column_hot['title']}</div>
</a>
{/loop}

<div>阅读排行</div>
{loop $column_pvs $column_pv}
<a href="/article/page/id/{$column_pv['id']}">
    <div>{$column_pv['title']}</div>
</a>
{/loop}

<div>最近更新</div>
{loop $newests $newest}
<a href="/article/page/id/{$newest['id']}">
    <div>•</div>
    <div>{$newest['title']}</div>
</a>
{/loop}

{template '../footer'}